{% extends 'backend/backend_base.html' %}

{% block article %}
    <table class="table table-striped table-hover">
        <thead>
            <tr>
                <th>文章标题</th>
                <th>点赞数</th>
                <th>评论数</th>
                <th>操作</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            {% for article_obj in page_queryset %}
                <tr>
                    <td><a href="/{{ request.user.username }}/article/{{ article_obj.pk }}">{{ article_obj.title }}</a></td>
                    <td>{{ article_obj.up_num }}</td>
                    <td>{{ article_obj.comment_num }}</td>
                    <td><a href="">编辑</a></td>
                    <td><a href="">删除</a></td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
    <div class="pull-right">
        {{ page_obj.page_html|safe }}
    </div>
{% endblock %}